package ClientServerFacade;





/**
 * @program: course
 * @author: lsn
 * @create: 2024-04-07 12:23
 * @description: 外观类
 */
public class ClientServerFacade {
    private CheckWord checkWord;
    private Charge charge;
    private TypeSetting typeSetting;
    String advertisement;

    public ClientServerFacade(String advertisement) {
        this.advertisement = advertisement;
        checkWord  = new CheckWord(advertisement);
        charge = new Charge(checkWord);
        typeSetting = new TypeSetting(advertisement);
    }

    public void doAdvvertisement(){
        checkWord.setChargeAmount();
        charge.giveCharge();
        typeSetting.typeSeting();
    }
}


